<?php
/**
 * 商会通讯录模块定义
 *
 * @author zh0537cn
 * @url http://s.we7.cc/
 */
defined('IN_IA') or exit('Access Denied');

global $_W, $_GPC;

load()->func('tpl');

$opp = 'citysetup';

$uniacid = $_W['uniacid'];

$deat = pdo_fetch("SELECT `city_paykey`,`city_tokey`,`city_overkey` FROM " . tablename('bbyscm_card_sysset') . ' where `uniacid`=:uniacid limit 1', array(':uniacid' => $uniacid));

if (checksubmit('submit')) {
    $data['city_paykey'] = $_GPC['city_paykey'];
    $data['city_tokey'] = $_GPC['city_tokey'];
    $data['city_overkey'] = $_GPC['city_overkey'];
 if (empty($deat)) {
	 
        $data['uniacid'] = $uniacid;
		
        pdo_insert('bbyscm_card_sysset', $data);
		
    } else {
		
        pdo_update('bbyscm_card_sysset', $data, array('uniacid' => $uniacid));
		
    }
	
		message('更新参数设置成功！', 'refresh');
    
}

include $this->template('web/citysetup');

?>